package com.guaoran.other.prototype.simple;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : 孤傲然
 * @Description :
 *  浅复制
 * @date :2018/5/13 18:54
 */
public class Prototype implements Cloneable {
    private String name;
    private String addredd;
    private List<String> list;
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    public Prototype(){
        name = "zs";
        addredd = "北京";
        list = new ArrayList<String>();
        list.add("0000");
        list.add("0001");
        list.add("0002");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddredd() {
        return addredd;
    }

    public void setAddredd(String addredd) {
        this.addredd = addredd;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }


}
